CORE_PROJECTS := Capture  Decoder Motion Encoder Viewer
MAKE=make


all:
	@$(foreach d, $(CORE_PROJECTS), \
		cd $(d); \
		$(MAKE) system  1>/dev/null; \
		cd .. ; \
		echo Compiled $(d) ;\
	)

clean:
	@$(foreach d, $(CORE_PROJECTS), \
		cd $(d) ; \
		$(MAKE) clean 1>/dev/null;\
		cd .. ; \
	)
